package tr.edu.ozyegin.ccrg.raid.config;

public class QuorumList {
	private String[] quorums = null;
	public QuorumList(String quorum){
		this.quorums = quorum.split(",");
	}
	public boolean isInQuorum(String node){
		for(int i = 0; i < this.quorums.length ; i++){
			if(this.quorums[i].equals(node)) return true;
		}
		return false;
	}
	public int getQuorumSize(){
		return this.quorums.length;
	}
}
